From: Timm Bäder Date: Thu, 22 Aug 2019 15:16:21 +0000 (+0200) Subject: bitmask: Add _gtk_allocated_bitmask_to_string X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~976 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1f11892de4515f997818bf5005b02c33faa1c5ff;p=gtk4.git bitmask: Add _gtk_allocated_bitmask_to_string --- diff --git a/gtk/gtkallocatedbitmask.c b/gtk/gtkallocatedbitmask.c index f655e9d6a1..64c3b14b4c 100644 --- a/gtk/gtkallocatedbitmask.c +++ b/gtk/gtkallocatedbitmask.c @@ -106,6 +106,16 @@ _gtk_allocated_bitmask_free (GtkBitmask *mask) g_free (mask); } +char * +_gtk_allocated_bitmask_to_string (const GtkBitmask *mask) +{ + GString *str = g_string_new (NULL); + + _gtk_allocated_bitmask_print (mask, str); + + return g_string_free (str, FALSE); +} + void _gtk_allocated_bitmask_print (const GtkBitmask *mask, GString *string) diff --git a/gtk/gtkallocatedbitmaskprivate.h b/gtk/gtkallocatedbitmaskprivate.h index 351f68592a..3076605ab1 100644 --- a/gtk/gtkallocatedbitmaskprivate.h +++ b/gtk/gtkallocatedbitmaskprivate.h @@ -42,6 +42,7 @@ typedef struct _GtkBitmask GtkBitmask; GtkBitmask * _gtk_allocated_bitmask_copy (const GtkBitmask *mask); void _gtk_allocated_bitmask_free (GtkBitmask *mask); +char * _gtk_allocated_bitmask_to_string (const GtkBitmask *mask); void _gtk_allocated_bitmask_print (const GtkBitmask *mask, GString *string);